﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Problema1_AbstractFactory_Singleton_ObjectPool
{
    public class MasinaCoupe : Masina
    {
        //public static int COUNTER = 0;
        public MasinaCoupe()
        { 
        }
        public MasinaCoupe(Culoare cul, Transmisie trs, Climatizare clm, Tapiterie tap)
        {
            //++COUNTER;

            this.m_strTip = "Masina Coupe";

            Random rnd = new Random();
            this.m_strSerie = rnd.Next(1200,1299).ToString();

            this.culoare = cul;
            this.transmisie = trs;
            this.motorizare = new MotorizareBenzina();
            this.climatizare = clm;
            this.tapiterie = tap;

            this.m_strDimLung = 4500;
            this.m_strDimLat = 1600;
        }
        public override string getTip()
        {
            return m_strTip;
        }
        public override string getSerie()
        {
            return m_strSerie;
        }
        public override string getCuloare()
        {
            return this.culoare.getNume();
        }
        public override string getTransmisie()
        {
            return this.transmisie.getNume();
        }
        public override string getMotorizare()
        {
            return this.motorizare.getNume();
        }
        public override string getClimatizare()
        {
            return this.climatizare.getNume();
        }
        public override string getTapiterie()
        {
            return this.tapiterie.getNume();
        }
        public override int getDimLung()
        {
            return this.m_strDimLung;
        }
        public override int getDimLat()
        {
            return this.m_strDimLat;
        }
    }
}
